package com.example.demo.service.impl;

import com.example.demo.entity.Reckoning;
import com.example.demo.mapper.ReckoningMapper;
import com.example.demo.service.ReckoningService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReckoningServiceImpl implements ReckoningService {
    @Autowired
    private ReckoningMapper reckoningMapper;

    @Override
    public void insertReckoning(Reckoning reckoning) {
        reckoningMapper.insertReckoning(reckoning);
    }

    @Override
    public List<Reckoning> selectReckoningByD(String id) {
        return reckoningMapper.selectReckoningByD(id);
    }

    @Override
    public List<Reckoning> selectReckoningByY(String id) {
        return reckoningMapper.selectReckoningByY(id);
    }
}
